.hh-button{
    /* 这里再加一次变量是为了后面类名控制这个变量的值，来实现根据类型改变样式，
    不可能改变全局的样式的值吧 */
    --hh-button-font-weight: var(--hh-font-weight-primary);
    --hh-button-border-color: var(--hh-border-color);
    --hh-button-bg-color: var(--hh-fill-color-blank);
    --hh-button-text-color: var(--hh-text-color-regular);
    --hh-button-disabled-text-color: var(--hh-disabled-text-color);
    --hh-button-disabled-bg-color: var(--hh-fill-color-blank);
    --hh-button-disabled-border-color: var(--hh-border-color-light);
    --hh-button-hover-text-color: var(--hh-color-primary);
    --hh-button-hover-bg-color: var(--hh-color-primary-light-9);
    --hh-button-hover-border-color: var(--hh-color-primary-light-7);
    --hh-button-active-text-color: var(--hh-button-hover-text-color);
    --hh-button-active-border-color: var(--hh-color-primary);
    --hh-button-active-bg-color: var(--hh-button-hover-bg-color);
    --hh-button-outline-color: var(--hh-color-primary-light-5);
    --hh-button-active-color: var(--hh-text-color-primary);
}

.hh-button{
    /**
    后面根据类名改变值变量的值就行了
    **/
        display: inline-flex;
        justify-content: center;
        align-items: center;
        line-height: 1;
        height: 32px;
        white-space: nowrap;
        cursor: pointer;
        color: var(--hh-button-text-color);
        text-align: center;
        box-sizing: border-box;
        outline: none;
        transition: .1s;
        font-weight: var(--hh-button-font-weight);
        user-select: none;
        vertical-align: middle;
        -webkit-appearance: none;
        background-color: var(--hh-button-bg-color);
        border: var(--hh-border);
        border-color: var(--hh-button-border-color);
        padding: 8px 15px;
        font-size: var(--hh-font-size-base);
        border-radius: var(--hh-border-radius-base);
        & + & {
          margin-left: 12px;
        }
        &:hover,
        &:focus {
          color: var(--hh-button-hover-text-color);
          border-color: var(--hh-button-hover-border-color);
          background-color: var(--hh-button-hover-bg-color);
          outline: none;    
        }
        &:active {
          color: var(--hh-button-active-text-color);
          border-color: var(--hh-button-active-border-color);
          background-color: var(--hh-button-active-bg-color);
          outline: none;
        }
        &.is-plain {
          --hh-button-hover-text-color: var(--hh-color-primary);
          --hh-button-hover-bg-color: var(--hh-fill-color-blank);
          --hh-button-hover-border-color: var(--hh-color-primary);    
        }
        /*round*/
        &.is-round {
          border-radius: var(--hh-border-radius-round);
        }
        /*circle*/
        &.is-circle {
          border-radius: 50%;
          padding: 8px;
        }
        /*disabled*/
        &.is-disabled, &.is-disabled:hover, &.is-disabled:focus, 
        &[disabled], &[disabled]:hover, &[disabled]:focus 
        {
          color: var(--hh-button-disabled-text-color);
          cursor: not-allowed;
          background-image: none;
          background-color: var(--hh-button-disabled-bg-color);
          border-color: var(--hh-button-disabled-border-color);
        }
        [class*=hh-icon] + span {
          margin-left: 6px;
        }    
}


// primary success  warning  danger info



.hh-button--primary {
      --hh-button-text-color: var(--hh-color-white);
      --hh-button-bg-color: var(--hh-color-primary);
      --hh-button-border-color: var(--hh-color-primary);
      --hh-button-outline-color: var(--hh-color-primary-light-5);
      --hh-button-active-color: var(--hh-color-primary-dark-2);
      --hh-button-hover-text-color: var(--hh-color-white);
      --hh-button-hover-bg-color: var(--hh-color-primary-light-3);
      --hh-button-hover-border-color: var(--hh-color-primary-light-3);
      --hh-button-active-bg-color: var(--hh-color-primary-dark-2);
      --hh-button-active-border-color: var(--hh-color-primary-dark-2);
      --hh-button-disabled-text-color: var(--hh-color-white);
      --hh-button-disabled-bg-color: var(--hh-color-primary-light-5);
      --hh-button-disabled-border-color: var(--hh-color-primary-light-5);
    }

.hh-button--primary.is-plain {
        --hh-button-text-color: var(--hh-color-primary);
        --hh-button-bg-color: var(--hh-color-primary-light-9);
        --hh-button-border-color: var(--hh-color-primary-light-5);
        --hh-button-hover-text-color: var(--hh-color-white);
        --hh-button-hover-bg-color: var(--hh-color-primary);
        --hh-button-hover-border-color: var(--hh-color-primary);
        --hh-button-active-text-color: var(--hh-color-white);
        --hh-button-disabled-text-color: var(--hh-color-primary-light-5);
        --hh-button-disabled-bg-color: var(--hh-color-primary-light-9);
        --hh-button-disabled-border-color: var(--hh-color-primary-light-8);
      }

.hh-button--success {
        --hh-button-text-color: var(--hh-color-white);
        --hh-button-bg-color: var(--hh-color-success);
        --hh-button-border-color: var(--hh-color-success);
        --hh-button-outline-color: var(--hh-color-success-light-5);
        --hh-button-active-color: var(--hh-color-success-dark-2);
        --hh-button-hover-text-color: var(--hh-color-white);
        --hh-button-hover-bg-color: var(--hh-color-success-light-3);
        --hh-button-hover-border-color: var(--hh-color-success-light-3);
        --hh-button-active-bg-color: var(--hh-color-success-dark-2);
        --hh-button-active-border-color: var(--hh-color-success-dark-2);
        --hh-button-disabled-text-color: var(--hh-color-white);
        --hh-button-disabled-bg-color: var(--hh-color-success-light-5);
        --hh-button-disabled-border-color: var(--hh-color-success-light-5);
      }
.hh-button--success.is-plain {
          --hh-button-text-color: var(--hh-color-success);
          --hh-button-bg-color: var(--hh-color-success-light-9);
          --hh-button-border-color: var(--hh-color-success-light-5);
          --hh-button-hover-text-color: var(--hh-color-white);
          --hh-button-hover-bg-color: var(--hh-color-success);
          --hh-button-hover-border-color: var(--hh-color-success);
          --hh-button-active-text-color: var(--hh-color-white);
          --hh-button-disabled-text-color: var(--hh-color-success-light-5);
          --hh-button-disabled-bg-color: var(--hh-color-success-light-9);
          --hh-button-disabled-border-color: var(--hh-color-success-light-8);
        }

.hh-button--warning {
          --hh-button-text-color: var(--hh-color-white);
          --hh-button-bg-color: var(--hh-color-warning);
          --hh-button-border-color: var(--hh-color-warning);
          --hh-button-outline-color: var(--hh-color-warning-light-5);
          --hh-button-active-color: var(--hh-color-warning-dark-2);
          --hh-button-hover-text-color: var(--hh-color-white);
          --hh-button-hover-bg-color: var(--hh-color-warning-light-3);
          --hh-button-hover-border-color: var(--hh-color-warning-light-3);
          --hh-button-active-bg-color: var(--hh-color-warning-dark-2);
          --hh-button-active-border-color: var(--hh-color-warning-dark-2);
          --hh-button-disabled-text-color: var(--hh-color-white);
          --hh-button-disabled-bg-color: var(--hh-color-warning-light-5);
          --hh-button-disabled-border-color: var(--hh-color-warning-light-5);
        }
    
.hh-button--warning.is-plain {
            --hh-button-text-color: var(--hh-color-warning);
            --hh-button-bg-color: var(--hh-color-warning-light-9);
            --hh-button-border-color: var(--hh-color-warning-light-5);
            --hh-button-hover-text-color: var(--hh-color-white);
            --hh-button-hover-bg-color: var(--hh-color-warning);
            --hh-button-hover-border-color: var(--hh-color-warning);
            --hh-button-active-text-color: var(--hh-color-white);
            --hh-button-disabled-text-color: var(--hh-color-warning-light-5);
            --hh-button-disabled-bg-color: var(--hh-color-warning-light-9);
            --hh-button-disabled-border-color: var(--hh-color-warning-light-8);
          }

          .hh-button--danger {
            --hh-button-text-color: var(--hh-color-white);
            --hh-button-bg-color: var(--hh-color-danger);
            --hh-button-border-color: var(--hh-color-danger);
            --hh-button-outline-color: var(--hh-color-danger-light-5);
            --hh-button-active-color: var(--hh-color-danger-dark-2);
            --hh-button-hover-text-color: var(--hh-color-white);
            --hh-button-hover-bg-color: var(--hh-color-danger-light-3);
            --hh-button-hover-border-color: var(--hh-color-danger-light-3);
            --hh-button-active-bg-color: var(--hh-color-danger-dark-2);
            --hh-button-active-border-color: var(--hh-color-danger-dark-2);
            --hh-button-disabled-text-color: var(--hh-color-white);
            --hh-button-disabled-bg-color: var(--hh-color-danger-light-5);
            --hh-button-disabled-border-color: var(--hh-color-danger-light-5);
          }
      
  .hh-button--danger.is-plain {
              --hh-button-text-color: var(--hh-color-danger);
              --hh-button-bg-color: var(--hh-color-danger-light-9);
              --hh-button-border-color: var(--hh-color-danger-light-5);
              --hh-button-hover-text-color: var(--hh-color-white);
              --hh-button-hover-bg-color: var(--hh-color-danger);
              --hh-button-hover-border-color: var(--hh-color-danger);
              --hh-button-active-text-color: var(--hh-color-white);
              --hh-button-disabled-text-color: var(--hh-color-danger-light-5);
              --hh-button-disabled-bg-color: var(--hh-color-danger-light-9);
              --hh-button-disabled-border-color: var(--hh-color-danger-light-8);
            }


            .hh-button--info {
              --hh-button-text-color: var(--hh-color-white);
              --hh-button-bg-color: var(--hh-color-info);
              --hh-button-border-color: var(--hh-color-info);
              --hh-button-outline-color: var(--hh-color-info-light-5);
              --hh-button-active-color: var(--hh-color-info-dark-2);
              --hh-button-hover-text-color: var(--hh-color-white);
              --hh-button-hover-bg-color: var(--hh-color-info-light-3);
              --hh-button-hover-border-color: var(--hh-color-info-light-3);
              --hh-button-active-bg-color: var(--hh-color-info-dark-2);
              --hh-button-active-border-color: var(--hh-color-info-dark-2);
              --hh-button-disabled-text-color: var(--hh-color-white);
              --hh-button-disabled-bg-color: var(--hh-color-info-light-5);
              --hh-button-disabled-border-color: var(--hh-color-info-light-5);
            }
        
    .hh-button--info.is-plain {
                --hh-button-text-color: var(--hh-color-info);
                --hh-button-bg-color: var(--hh-color-info-light-9);
                --hh-button-border-color: var(--hh-color-info-light-5);
                --hh-button-hover-text-color: var(--hh-color-white);
                --hh-button-hover-bg-color: var(--hh-color-info);
                --hh-button-hover-border-color: var(--hh-color-info);
                --hh-button-active-text-color: var(--hh-color-white);
                --hh-button-disabled-text-color: var(--hh-color-info-light-5);
                --hh-button-disabled-bg-color: var(--hh-color-info-light-9);
                --hh-button-disabled-border-color: var(--hh-color-info-light-8);
              }